// PHSDirectorySetting.h: interface for the PHSDirectorySetting class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_PHSDIRECTORYSETTING_H__293451DB_C498_4FCD_8DE3_98A2DA31D1B1__INCLUDED_)
#define AFX_PHSDIRECTORYSETTING_H__293451DB_C498_4FCD_8DE3_98A2DA31D1B1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "PHSSetting.h"
#include "Singleton.h"

class DllExport PHSDirectorySetting : public PHSSetting  
{
	DECLARE_SINGLETON(PHSDirectorySetting);
public:
	PHSDirectorySetting();
	virtual ~PHSDirectorySetting();

public:
	virtual BOOL InitSetting();
	virtual BOOL SaveSetting();

public:
	const CString& PrjDBDir() const {
		return m_strPrjDBDir;
	}

	void PrjDBDir(const CString& strPrjDBDir){
		m_strPrjDBDir = strPrjDBDir;
	}

	const CString& PrjDir() const {
		return m_strPrjDir;
	}

	void PrjDir(const CString& strPrjDir){
		m_strPrjDir = strPrjDir;
	} 

	const CString& PrjTemplateDir() const {
		return m_strPrjTemplateDir;
	}

	void PrjTemplateDir(const CString& strPrjDir){
		m_strPrjTemplateDir = strPrjDir;
	}

	const CString& CrudeDBDir() const {
		return m_strCrudeDBDir;
	}

	void CrudeDBDir(const CString& strDBDir) {
		m_strCrudeDBDir = strDBDir;
	}

	const CString& DefaultPrjDir() const {
		return m_strDefaultPrjDir;
	}

	void DefaultPrjDir(const CString& strPrj){
		m_strDefaultPrjDir = strPrj;
	}
	
	const CString& MenuDir() const {
		return m_strMenuDir;
	}

	void MenuDir(const CString& strDir){
		m_strMenuDir = strDir;
	}
	
	const CString& SpecDir() const {
		return m_strSpecDir;
	}

	void SpecDir(const CString& strDir) {
		m_strSpecDir = strDir;
	}

private:
	CString m_strPrjDBDir;
	CString m_strPrjDir;
	CString m_strPrjTemplateDir;
	CString m_strCrudeDBDir;
	CString m_strDefaultPrjDir;
	CString m_strMenuDir;
	CString m_strSpecDir;
};

__declspec( dllexport ) PHSDirectorySetting& GetCurDirectorySetting();
#endif // !defined(AFX_PHSDIRECTORYSETTING_H__293451DB_C498_4FCD_8DE3_98A2DA31D1B1__INCLUDED_)
